package com.mvp.shq.washer.ui.aboutUs;

import com.mvp.shq.washer.entity.BasicInfo;
import com.mvp.shq.washer.entity.result.BaseResult;
import com.mvp.shq.washer.http.Api;
import com.mvp.shq.washer.http.RxSchedulers;

import io.reactivex.Observable;

/**
 * Created by Administrator on 2017/8/31.
 */

public class Model implements AboutUsConstract.Model {
    @Override
    public Observable<BaseResult<BasicInfo>> getAboutUs(String key) {
        return Api.getInstance().service
                .basicInfo(key)
                .compose(RxSchedulers.io_main());
    }
}
